/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author jackey
 * @version 1.0
 * @date 2016-01-06
 */
package com.eyaomall.wxmall.service;

import java.util.List;

import com.eyaomall.wxmall.model.po.Goods;
import com.eyaomall.wxmall.model.vo.GoodsVO;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 产品接口
 * 
 * @author pro
 *
 */
public interface GoodsService {

	/**
	 * 根据ID查询产品信息
	 * 
	 * @param id
	 * @return
	 */
	public Goods queryByGoodsId(Integer id);

	/**
	 * 查询产品信息
	 */
	public Goods query(Integer id);

	/**
	 * 根据ids查询我的产品信息
	 * 
	 * @param ids
	 * @return
	 */
	public List<Goods> list(String ids);

	/**
	 * 根据shopId查询产品信息
	 * 
	 * @param ids
	 * @return
	 */
	public List<Goods> hotGoods();

	/**
	 * 修改我的产品信息
	 * 
	 * @param goods
	 * @return
	 */
	public boolean update(Goods goods);

	/**
	 * 修改我的产品库存
	 * 
	 * @param goods
	 * @return
	 */
	public boolean updateInventory(Goods goods);

	/**
	 * 分页显示产品列表
	 */
	public Pages<?> page(GoodsVO goodsVO, PageHTTPObject object);

	/**
	 * 热卖商品列表
	 * 
	 * @param goods
	 * @param httpObject
	 * @return
	 */
	public Pages<?> hotGoods(Goods goods, PageHTTPObject httpObject);
}
